<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			function show(){
				d1.innerHTML=uname.value;
			}
		</script>
	</head>
	<body>
		<input id="uname" type="text"><br>
		<button onclick="show()">显示</button>
		<div id="d1"></div>
	</body>
</html>
